﻿@page "/creator/posts/{id}"
@inherits BaseComponent

<UserLayout Title="编辑问题">
    <CmsCard Class="cl-creator-form" Title="编辑问题">
        <UPostForm Id="@Id" Service="Service" BackUrl="@Url.UserPostsUrl" />
    </CmsCard>
</UserLayout>

@code {
    private ISiteService Service;

    protected override async Task OnInitAsync()
    {
        if (CurrentUser == null)
            return;

        await base.OnInitAsync();
        Service = await CreateServiceAsync<ISiteService>();
    }
}